package com.glink.manage.dto.temporaryadmission;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * 临时准入，工程
 * @Author : qiushaoshan
 * @create 2025/3/4 10:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TemporaryAdmissionWorkDTO implements Serializable {

    private static final long serialVersionUID = 4043303030649676820L;

    @ApiModelProperty(value = "主键ID")
    private String objId;
    
    @ApiModelProperty(value = "证件号（身份证号/车牌号）")
    @Size(max = 20, message = "证件号不能超过20位")
    @NotBlank(message = "身份证号不能为空")
    private String idNumber;
    
    @ApiModelProperty(value = "所属工程ID")
    @NotBlank(message = "准入工程不能为空")
    private String constructionWorkObjId;
}
